package dto

import (
	"comm/selfreg"
	"core/class"
	"reflect"
)

type CommDeviceOnlineDto struct {
	Id int64 `json:"id,string"                         gorm:"column:id;primaryKey;autoIncrement:false;comment:主键;"`

	OnlineDt string `json:"onlineDt"                         gorm:"column:online_dt;default:'';size:20;comment:上线时间;"`
	OffDt    string `json:"offDt"                         gorm:"column:off_dt;default:'';size:20;comment:下线时间;"`
	Seconds  int    `json:"seconds"                         gorm:"column:seconds;comment:在线秒数;"`
	Sseconds string `json:"sseconds"                         gorm:"column:-;comment:在线时间;"`
}

func (p *CommDeviceOnlineDto) TableName() string {
	return "CommDeviceOnline"
}

func init() {

	var mcls = &CommDeviceOnlineDto{}
	var m = &class.MyClass{
		Name:     "上下线Dto",
		Ename:    "",
		FullName: "",
		Memo:     "",
		Fileds:   nil,
		PrjName:  "",
		Type:     reflect.TypeOf(mcls),
	}
	selfreg.AddDto(m)
}
